package model

import (
	"gorm.io/gorm"
	"time"
)

type EduVideo struct {
	ID                int            `json:"id"`
	CourseID          int            `json:"course_id"`
	ChapterID         int            `json:"chapter_id"`
	Title             string         `json:"title"`
	VideoSourceID     string         `json:"video_source_id"`
	VideoOriginalName string         `json:"video_original_name"`
	Sort              int            `json:"sort"`
	PlayCount         int            `json:"play_count"`
	IsFree            int            `json:"free"`
	Duration          float64        `json:"duration"`
	Status            string         `json:"status"`
	Size              int            `json:"size"`
	Version           int            `json:"version"`
	CreatedAt         time.Time      `json:"created_at"`
	UpdatedAt         time.Time      `json:"updated_at"`
	DeletedAt         gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

func (EduVideo) TableName() string {
	return "edu_video"
}
